<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    // 准备函数，给定时器调用
    let number = 1;
    // 创建函数
    function changePic() {
        console.log("修改图片路径...." + number);
        number++;
    }
    setInterval(changePic, 1000);
</script>
</body>
</html>